---
title: bud.devtool
description: Configure sourcemaps
tags:
  - configuration
  - facade
---

Configure sourcemaps.

## Usage

Enable sourcemaps with defaults:
  - `eval` in [development](/reference/bud.mode/bud.isDevelopment)
  - `source-map` in [production](/reference/bud.mode/bud.isProduction)

```ts title=bud.config.ts
bud.devtool()
```

Disable sourcemaps

```ts title=bud.config.ts
bud.devtool(false)
```

Override the default configuration

```ts title=bud.config.ts
bud.devtool(`eval-source-map`)
```

**bud.devtool** can be used as a bud.js callback. When used this way it is the same as enabling sourcemaps with the default configuration.

```ts title=bud.config.ts
bud.when(bud.isDevelopment, bud.devtool)
```

```ts title=bud.config.ts
bud.tap(bud.devtool)
```

## Related

- [bud.when](/reference/bud.when)
- [bud.tap](/reference/bud.tap)
